package com.jg.visitor.service;

import com.jg.visitor.controller.dto.FileUploadRecordDTO;
import com.jg.visitor.domain.FileUploadRecord;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;

/**
* @author 小狐狸
*/
public interface FileUploadRecordService extends IService<FileUploadRecord> {
    /**
     * 上传图片
     */
    FileUploadRecordDTO uploadImg(MultipartFile multipartFile) throws IOException;

    /**
     * 根据图片id找到图片路径
     */
    String getFilePathById(List<FileUploadRecord> allImg, Long fileId);
}
